<template>
  <div class="agent-page">
    <div class="menu">
      <Menu :index="1" />
    </div>
    <el-scrollbar class="coR">
      <div class="cont-1">
        <div class="upload">
          <CirclePlusFilled class="icon" />
          <div class="text">创建营销助手</div>
        </div>
        <div class="use">
          <div class="name">最近使用</div>
          <div class="rows">
            <div class="item-box">
              <div class="image">
                <Share class="icon" />
              </div>
              <div class="text">Ai自动投放</div>
            </div>
            <div class="item-box">
              <div class="image">
                <PieChart class="icon" />
              </div>
              <div class="text">数据分析</div>
            </div>
            <div class="item-box">
              <div class="image">
                <Odometer class="icon" />
              </div>
              <div class="text">预算规划助手</div>
            </div>
            <div class="item-box">
              <div class="image">
                <MessageBox class="icon" />
              </div>
              <div class="text">洞察报告生成</div>
            </div>
            <div class="item-box">
              <div class="image">
                <Connection class="icon" />
              </div>
              <div class="text">达人筛选助手</div>
            </div>
          </div>
        </div>
      </div>
      <div class="cont-2">
        <div class="title">My Agent</div>
        <div class="rows">
          <div class="item-box">
            <div class="name">Ai自动广告投放</div>
            <div class="desc">
              自动化的基于给定的目标，进行广告的投放，并能基于反馈修正
            </div>
            <div class="user">创建人：admin</div>
          </div>
          <div class="item-box">
            <div class="name">人群包选择策略</div>
            <div class="desc">
              基于给定的营销活动目标和产品，自动进行产品分析，并推荐人群包策略
            </div>
            <div class="user">创建人：admin</div>
          </div>
          <div class="item-box">
            <div class="name">洞察报告生成</div>
            <div class="desc">
              动态监控市场，社媒等平台数据，并进行自动化分析整理，定期生成洞察报告
            </div>
            <div class="user">创建人：admin</div>
          </div>
          <div class="item-box">
            <div class="name">达人筛选助手</div>
            <div class="desc">
              自动化的基于给定的目标，进行广告的投放，并能基于反馈修正
            </div>
            <div class="user">创建人：admin</div>
          </div>
          <div class="item-box">
            <div class="name">自媒体文案批量生成</div>
            <div class="desc">批量化自动化生成自媒体营销文案</div>
            <div class="user">创建人：admin</div>
          </div>
          <div class="item-box">
            <div class="name">预算规划助手</div>
            <div class="desc">根据营销目标，自动进行预算评估和规划</div>
            <div class="user">创建人：admin</div>
          </div>
          <div class="item-box">
            <div class="name">数据分析助手</div>
            <div class="desc">问答交互式的进行数据分析与展示</div>
            <div class="user">创建人：admin</div>
          </div>
        </div>
      </div>
    </el-scrollbar>
  </div>
</template>
<script setup>
import Menu from "./menu.vue";
import {
  Share,
  PieChart,
  Odometer,
  MessageBox,
  Connection,
} from "@element-plus/icons-vue";
</script>
<style lang="scss" scoped>
.agent-page {
  clear: both;
  overflow: hidden;
  height: 100%;
  line-height: 1;
  display: flex;
  font-size: 14px;
  .menu {
    margin-right: 20px;
    background-color: #fff;
  }
  .coR {
    flex: 1;
    width: 1%;
    background-color: #fff;
    overflow: hidden;
    .cont-1 {
      display: flex;
      padding: 24px;
      .upload {
        width: 300px;
        height: 220px;
        border: solid 1px #ccc;
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        .icon {
          color: #2171fe;
          width: 60px;
          height: 60px;
        }
        .text {
          font-size: 20px;
          line-height: 2;
          margin-top: 5px;
        }
      }
      .use {
        border: solid 1px #ccc;
        flex: 1;
        width: 1%;
        margin-left: 24px;
        border-radius: 20px;
        .name {
          line-height: 60px;
          font-size: 18px;
          padding: 0 20px;
          font-weight: bold;
        }
        .rows {
          display: flex;
          flex-wrap: wrap;
          padding: 0 20px;
          .item-box {
            width: calc(100% / 3 - 20px);
            height: 60px;
            margin-right: 20px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            border-radius: 10px;
            box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
            cursor: pointer;
            .image {
              width: 40px;
              height: 40px;
              background-color: #999;
              border-radius: 50%;
              margin-left: 20px;
              margin-right: 10px;
              color: #fff;
              display: flex;
              align-items: center;
              justify-content: center;
              .icon {
                width: 30px;
                height: 30px;
                font-weight: bold;
              }
            }
            &:nth-child(1) {
              .image {
                background-color: #2171fe;
              }
            }
            &:nth-child(2) {
              .image {
                background-color: #feb721;
              }
            }
            &:nth-child(3) {
              .image {
                background-color: #3ad210;
              }
            }
            &:nth-child(4) {
              .image {
                background-color: #ff7e00;
              }
            }
            &:nth-child(5) {
              .image {
                background-color: #00e4ff;
              }
            }
            &:nth-child(3n) {
              margin-right: 0;
            }
          }
        }
      }
    }
    .cont-2 {
      padding: 0 20px 20px;
      clear: both;
      overflow: hidden;
      .title {
        line-height: 60px;
        font-size: 18px;
        font-weight: bold;
      }
      .rows {
        display: flex;
        flex-wrap: wrap;
        .item-box {
          width: calc(100% / 4 - 74px);
          border: solid 1px #ccc;
          border-radius: 20px;
          margin-right: 24px;
          margin-bottom: 24px;
          padding: 0 24px 24px;
          .name {
            font-size: 20px;
            font-weight: bold;
            line-height: 3;
          }
          .desc {
            line-height: 24px;
            color: #999;
            height: 48px;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            overflow: hidden;
          }
          .user {
            margin-top: 20px;
          }
        }
      }
    }
  }
}
</style>
